//
//  NoGoodsView.swift
//  许鲜
//
//  Created by hbl on 16/4/28.
//  Copyright © 2016年 hbl. All rights reserved.
//

import UIKit

class NoGoodsView: UIView {

    @IBOutlet weak var goAround: UIButton!
    @IBOutlet weak var getCoupon: UIButton!
    
    @IBAction func goAroundClick(sender: AnyObject) {
        let vc = UIApplication.sharedApplication().keyWindow?.rootViewController as! UITabBarController
        vc.selectedIndex = 0
    }
    
    @IBAction func getCouponClick(sender: AnyObject) {
    }
    
    class func noGoodsView() ->NoGoodsView{
        return NSBundle.mainBundle().loadNibNamed("NoGoodsView", owner: nil, options: nil).last as! NoGoodsView
    }
    
    override func awakeFromNib() {
        goAround.clipsToBounds = true
        goAround.layer.cornerRadius = 15
        getCoupon.clipsToBounds = true
        getCoupon.layer.cornerRadius = 15
    }
}
